using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class HowToPlayDialog : DialogBase
{
    [SerializeField] private GameObject infoPage;
    [SerializeField] private GameObject controlsPage;
    [SerializeField] private Button infoButton;
    [SerializeField] private Button controlsButton;

    private void Start()
    {
        InfoButtonClicked();
    }

    public void InfoButtonClicked()
    {
        infoButton.interactable = false;
        controlsButton.interactable = true;
        infoPage.SetActive(true);
        controlsPage.SetActive(false);
    }
    
    public void ControlsButtonClicked()
    {
        infoButton.interactable = true;
        controlsButton.interactable = false;
        infoPage.SetActive(false);
        controlsPage.SetActive(true);
    }
}
